d06377958b656d461954f2470f97b4b986f3fed6,src/main/java/org/testng/internal/ClassHelper.java,ClassHelper,getAvailableMethods,#Class#,167

Before Change


   */
  public static Set<Method> getAvailableMethods(Class<?> clazz) {
    Set<Method> methods = Sets.newHashSet();
    methods.addAll(Arrays.asList(clazz.getDeclaredMethods()));

    Class<?> parent = clazz.getSuperclass();
    while (null != parent) {

After Change


   */
  public static Set<Method> getAvailableMethods(Class<?> clazz) {
    Map<String, Set<Method>> methods = Maps.newHashMap();
    for (final Method method : clazz.getDeclaredMethods()) {
      if (methods.containsKey(method.getName())) {
        methods.get(method.getName()).add(method);
        continue;
      }
      methods.put(method.getName(), new HashSet<Method>() {{add(method);}});
    }

    Class<?> parent = clazz.getSuperclass();